package com.ljs.tranctionldemo.bean;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @Description:用来测试mongo的事务
 * @Author: liujinsheng
 * @Date: 2021/6/30.
 */
@Data
@ToString
@Document(collection ="mongo")
public class Mongo implements Serializable {
    @Id
    private  String id;
    private  String name;
    private float money;
}
